﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
                    xmlns:Detail="clr-namespace:Patterns4Net.ArchitectureExplorer.ViewModels.Detail">
    <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary>
            <DataTemplate DataType="{x:Type Detail:PackageDetailViewModel}" >
                <StackPanel Margin="0, 10, 0, 0">
                    <StackPanel Orientation="Horizontal">
                        <Image Source=".\..\..\Image\Package.png" Width="16" Height="16" Margin="0, 0, 7, 0"/>
                        <TextBlock FontSize="15" Text="{Binding Name}"></TextBlock>
                    </StackPanel>

                    <Separator/>
                    <TextBlock FontSize="13" Margin="10, 0, 0, 0">Package statistics: </TextBlock>
                    <StackPanel Margin="25, 0, 0, 0">
                        <StackPanel Orientation="Horizontal">
                            <TextBlock>Types: </TextBlock>
                            <TextBlock Text="{Binding TypesCount}" Margin="10, 0, 0, 0"/>
                        </StackPanel>
                        <StackPanel Orientation="Horizontal">
                            <TextBlock>Methods: </TextBlock>
                            <TextBlock Text="{Binding MethodsCount}" Margin="10, 0, 0, 0"/>
                        </StackPanel>
                        <StackPanel Orientation="Horizontal">
                            <TextBlock>Properties: </TextBlock>
                            <TextBlock Text="{Binding PropertiesCount}" Margin="10, 0, 0, 0"/>
                        </StackPanel>
                        <StackPanel Orientation="Horizontal">
                            <TextBlock>Patterns: </TextBlock>
                            <TextBlock Text="{Binding PatternsCount}" Margin="10, 0, 0, 0"/>
                        </StackPanel>
                    </StackPanel>

                    <Separator/>
                    <TextBlock TextWrapping="Wrap">
                        Packages correspond to first level 
                        namespaces in a layer. 
                    </TextBlock>
                </StackPanel>
            </DataTemplate>
        </ResourceDictionary>
    </ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
